package com.sztx.pay.center.tool;

import java.io.File;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.sztx.commons.httpclient.HttpClientConfigBuilder;
import com.sztx.commons.httpclient.HttpClientUtil;
import com.sztx.commons.httpclient.HttpHeaderBuilder;

public class FreezedAct {
	private static final Logger logger = LoggerFactory.getLogger(GrayUsers.class);		
	public static String GRAY_USER_URL = "http://cashier.berbon.com/account/freezedBalance";

	public static void main(String[] args) throws Exception {
		
		Set<String> userSet = new HashSet<String>();
		List<String> userList = FileUtils.readLines(new File("C:/Users/xiaosc/Desktop/冻结用户.txt"));
		if (userList != null && !userList.isEmpty()) {
			for (String userId : userList) {
				userSet.add(userId.trim());
			}
		}
		
		for (String userId : userSet) {

			System.out.println(userId);
		}
		
	}

	private static String getHtmlContent(String url){		
		HttpClientConfigBuilder clientBuilder = HttpClientConfigBuilder.custom();
		HttpHeaderBuilder headerBuilder = HttpHeaderBuilder.custom().cookie("berbonjsessionid=089F3AFE3DB843ABB70B710CC7E784A5");		
		String encoding = "UTF-8";
		return HttpClientUtil.get(clientBuilder, url, headerBuilder, encoding);	
	}
}
